package com.yonyougov.devops.cruxcisupport.k8s.service;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ServiceRequest {
    //命名空间
    private String nameSpace;
    //服务名称
    private String serviceName;
    //选择标签 默认值为：key:app value:"应用名称"
    private Map<String, String> selectors;
    //端口信息
    private List<ServicePortInfo> servicePortInfos = new ArrayList<>();
    //类型
    private String type = "NodePort";
}
